package com.sprucetec.live.common.dto.business;

import com.sprucetec.live.entity.LiveIntranetIp;
import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName LiveIntranetIpDto
 * @Description:
 * @Author Kenny
 * @Date 2020/4/26
 **/
@Data
public class LiveIntranetIpDto extends LiveIntranetIp implements Serializable {
    private Integer pageSize;

    private Integer pageIndex;

    private static final long serialVersionUID = 2869369542657600643L;
    public void judgePage() {
        if (pageIndex == null) {
            this.setPageIndex(1);
        }
        if (pageSize == null) {
            this.setPageSize(10);
        }
    }
}
